﻿<UserControl x:Class="EpiDashboard.StatCalc.TwoByTwo"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Background="#CCFFFFFF">
    <Grid>
        <GroupBox Margin="0,0,5,0">
            <GroupBox.Header>
                <TextBlock FontWeight="Bold">StatCalc - 2x2 Tables</TextBlock>
            </GroupBox.Header>
            <GroupBox.ContextMenu>
                <ContextMenu>
                    <MenuItem x:Name="mnuSave" Header="Save As Image..."/>
                    <MenuItem x:Name="mnuPrint" Header="Print..."/>
                </ContextMenu>
            </GroupBox.ContextMenu>
            <Grid x:Name="grdAll">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="555"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TabControl x:Name="MainTab" Grid.Column="0">
                    <TabItem x:Name="Tab1" Header="Strata 1">
                        <Grid>
                            <StackPanel x:Name="pnlMainContent" HorizontalAlignment="Left" VerticalAlignment="Top">
                                <StackPanel Name="pnlContent" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
                                    <TextBlock Name="txtExposure" FontWeight="Bold" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0"></TextBlock>
                                    <Grid Name="grdTables" HorizontalAlignment="Center" Margin="-100,10,10,10">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="20"/>
                                            <RowDefinition Height="30"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="55"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>

                                        <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="4" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="3" Stroke="Black"/>

                                        <TextBlock FontWeight="Bold" Name="txtOutcome" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"></TextBlock>

                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"></TextBlock>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1">
                                            <TextBox Name="txtYesYesVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesYesRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesYesCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2">
                                            <TextBox Name="txtYesNoVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesNoRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesNoCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="1">
                                            <TextBox Name="txtNoYesVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoYesRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoYesCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1">
                                            <TextBlock Name="txtTotalYesVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalYesRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalYesCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2">
                                            <TextBox Name="txtNoNoVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoNoRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoNoCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="2">
                                            <TextBlock Name="txtTotalNoVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalNoRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalNoCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="3">
                                            <TextBlock Name="txtYesTotalVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesTotalRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesTotalCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="3">
                                            <TextBlock Name="txtNoTotalVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoTotalRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoTotalCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="3">
                                            <TextBlock Name="txtTotalTotalVal1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalTotalRow1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalTotalCol1" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>
                                    </Grid>
                                </StackPanel>
                                <StackPanel Name="pnlAdvanced" HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
                                    <StackPanel Name="pnlParameters" HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Odds-based Parameters</TextBlock>
                                            <Grid Name="grdParameters" HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#x0a;(Mid-P)"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

                                                <TextBlock Margin="6, 0, 6, 0" Name="txtOddsRatioEstimate1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtOddsRatioLower1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtOddsRatioUpper1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="6, 0, 6, 0" Name="txtMidPEstimate1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtMidPLower1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtMidPUpper1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

                                                <TextBlock Margin="6, 0, 6, 0" Name="txtFisherEstimate1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtFisherLower1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtFisherUpper1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Risk-based Parameters</TextBlock>
                                            <Grid Name="grdRiskParameters" HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

                                                <TextBlock Margin="6, 0, 6, 0" Name="txtRiskRatioEstimate1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtRiskRatioLower1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtRiskRatioUpper1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="6, 0, 6, 0" Name="txtRiskDifferenceEstimate1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtRiskDifferenceLower1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtRiskDifferenceUpper1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel Name="pnlTests" HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Statistical Tests</TextBlock>
                                            <Grid Name="grdTests" HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="80"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock Grid.Row="0" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" FontFamily="Pericles">
                                    X<Run Typography.Variants="Superscript">2</Run>
                                                </TextBlock>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

                                                <TextBlock Margin="6, 0, 6, 0" Name="txtChiSqUncVal1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtChiSqUncP1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

                                                <TextBlock Margin="6, 0, 6, 0" Name="txtChiSqManVal1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtChiSqManP1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

                                                <TextBlock Margin="6, 0, 6, 0" Name="txtChiSqCorVal1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtChiSqCorP1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <Grid Name="grd1PTests" HorizontalAlignment="Center"  Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="6, 2, 6, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock Grid.Row="1" FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
                                                <TextBlock Grid.Row="2" FontWeight="Bold" Foreground="White" Margin="6, 0, 6, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

                                                <TextBlock Margin="6, 0, 6, 0" Name="txtMidPExact1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtFisherExact1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="6, 0, 6, 0" Name="txtFisherExact2P1" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                        </Grid>
                    </TabItem>
                    <TabItem x:Name="Tab2" Header="Strata 2">
                        <Grid>
                            <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
                                    <TextBlock Name="txtExposure2" FontWeight="Bold" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0"></TextBlock>
                                    <Grid Name="grdTables2" HorizontalAlignment="Center" Margin="-100,10,10,10">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="20"/>
                                            <RowDefinition Height="30"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="55"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>

                                        <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="4" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="3" Stroke="Black"/>

                                        <TextBlock FontWeight="Bold" Name="txtOutcome2" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"></TextBlock>

                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"></TextBlock>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1">
                                            <TextBox x:Name="txtYesYesVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesYesRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesYesCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2">
                                            <TextBox Name="txtYesNoVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesNoRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesNoCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="1">
                                            <TextBox Name="txtNoYesVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoYesRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoYesCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1">
                                            <TextBlock Name="txtTotalYesVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalYesRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalYesCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2">
                                            <TextBox Name="txtNoNoVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoNoRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoNoCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="2">
                                            <TextBlock Name="txtTotalNoVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalNoRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalNoCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="3">
                                            <TextBlock Name="txtYesTotalVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesTotalRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesTotalCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="3">
                                            <TextBlock Name="txtNoTotalVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoTotalRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoTotalCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="3">
                                            <TextBlock Name="txtTotalTotalVal2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalTotalRow2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalTotalCol2" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>
                                    </Grid>
                                </StackPanel>
                                <StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Odds-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#x0a;(Mid-P)"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioEstimate2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioLower2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioUpper2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPEstimate2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPLower2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPUpper2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherEstimate2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherLower2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherUpper2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Risk-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioEstimate2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioLower2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioUpper2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceEstimate2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceLower2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceUpper2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Statistical Tests</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="80"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock Grid.Row="0" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" FontFamily="Pericles">
                                    X<Run Typography.Variants="Superscript">2</Run>
                                                </TextBlock>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncVal2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncP2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManVal2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManP2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorVal2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorP2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <Grid HorizontalAlignment="Center"  Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock Grid.Row="1" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
                                                <TextBlock Grid.Row="2" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPExact2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact2P2" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                        </Grid>
                    </TabItem>
                    <TabItem x:Name="Tab3" Header="Strata 3">
                        <Grid>
                            <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
                                    <TextBlock Name="txtExposure3" FontWeight="Bold" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0"></TextBlock>
                                    <Grid Name="grdTables3" HorizontalAlignment="Center" Margin="-100,10,10,10">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="20"/>
                                            <RowDefinition Height="30"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="55"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>

                                        <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="4" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="3" Stroke="Black"/>

                                        <TextBlock FontWeight="Bold" Name="txtOutcome3" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"></TextBlock>

                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"></TextBlock>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1">
                                            <TextBox Name="txtYesYesVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesYesRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesYesCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2">
                                            <TextBox Name="txtYesNoVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesNoRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesNoCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="1">
                                            <TextBox Name="txtNoYesVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoYesRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoYesCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1">
                                            <TextBlock Name="txtTotalYesVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalYesRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalYesCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2">
                                            <TextBox Name="txtNoNoVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoNoRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoNoCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="2">
                                            <TextBlock Name="txtTotalNoVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalNoRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalNoCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="3">
                                            <TextBlock Name="txtYesTotalVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesTotalRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesTotalCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="3">
                                            <TextBlock Name="txtNoTotalVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoTotalRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoTotalCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="3">
                                            <TextBlock Name="txtTotalTotalVal3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalTotalRow3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalTotalCol3" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>
                                    </Grid>
                                </StackPanel>
                                <StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Odds-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#x0a;(Mid-P)"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioEstimate3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioLower3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioUpper3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPEstimate3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPLower3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPUpper3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherEstimate3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherLower3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherUpper3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Risk-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioEstimate3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioLower3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioUpper3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceEstimate3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceLower3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceUpper3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Statistical Tests</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="80"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock Grid.Row="0" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" FontFamily="Pericles">
                                    X<Run Typography.Variants="Superscript">2</Run>
                                                </TextBlock>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncVal3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncP3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManVal3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManP3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorVal3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorP3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <Grid HorizontalAlignment="Center"  Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock Grid.Row="1" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
                                                <TextBlock Grid.Row="2" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPExact3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact2P3" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                        </Grid>
                    </TabItem>
                    <TabItem x:Name="Tab4" Header="Strata 4">
                        <Grid>
                            <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
                                    <TextBlock Name="txtExposure4" FontWeight="Bold" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0"></TextBlock>
                                    <Grid Name="grdTables4" HorizontalAlignment="Center" Margin="-100,10,10,10">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="20"/>
                                            <RowDefinition Height="30"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="55"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>

                                        <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="4" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="3" Stroke="Black"/>

                                        <TextBlock FontWeight="Bold" Name="txtOutcome4" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"></TextBlock>

                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"></TextBlock>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1">
                                            <TextBox Name="txtYesYesVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesYesRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesYesCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2">
                                            <TextBox Name="txtYesNoVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesNoRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesNoCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="1">
                                            <TextBox Name="txtNoYesVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoYesRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoYesCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1">
                                            <TextBlock Name="txtTotalYesVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalYesRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalYesCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2">
                                            <TextBox Name="txtNoNoVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoNoRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoNoCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="2">
                                            <TextBlock Name="txtTotalNoVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalNoRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalNoCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="3">
                                            <TextBlock Name="txtYesTotalVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesTotalRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesTotalCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="3">
                                            <TextBlock Name="txtNoTotalVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoTotalRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoTotalCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="3">
                                            <TextBlock Name="txtTotalTotalVal4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalTotalRow4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalTotalCol4" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>
                                    </Grid>
                                </StackPanel>
                                <StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Odds-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#x0a;(Mid-P)"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioEstimate4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioLower4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioUpper4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPEstimate4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPLower4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPUpper4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherEstimate4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherLower4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherUpper4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Risk-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioEstimate4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioLower4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioUpper4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceEstimate4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceLower4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceUpper4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Statistical Tests</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="80"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock Grid.Row="0" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" FontFamily="Pericles">
                                    X<Run Typography.Variants="Superscript">2</Run>
                                                </TextBlock>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncVal4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncP4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManVal4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManP4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorVal4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorP4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <Grid HorizontalAlignment="Center"  Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock Grid.Row="1" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
                                                <TextBlock Grid.Row="2" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPExact4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact2P4" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                        </Grid>
                    </TabItem>
                    <TabItem x:Name="Tab5" Header="Strata 5">
                        <Grid>
                            <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
                                    <TextBlock Name="txtExposure5" FontWeight="Bold" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0"></TextBlock>
                                    <Grid Name="grdTables5" HorizontalAlignment="Center" Margin="-100,10,10,10">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="20"/>
                                            <RowDefinition Height="30"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="55"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>

                                        <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="4" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="3" Stroke="Black"/>

                                        <TextBlock FontWeight="Bold" Name="txtOutcome5" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"></TextBlock>

                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"></TextBlock>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1">
                                            <TextBox Name="txtYesYesVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesYesRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesYesCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2">
                                            <TextBox Name="txtYesNoVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesNoRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesNoCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="1">
                                            <TextBox Name="txtNoYesVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoYesRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoYesCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1">
                                            <TextBlock Name="txtTotalYesVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalYesRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalYesCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2">
                                            <TextBox Name="txtNoNoVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoNoRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoNoCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="2">
                                            <TextBlock Name="txtTotalNoVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalNoRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalNoCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="3">
                                            <TextBlock Name="txtYesTotalVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesTotalRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesTotalCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="3">
                                            <TextBlock Name="txtNoTotalVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoTotalRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoTotalCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="3">
                                            <TextBlock Name="txtTotalTotalVal5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalTotalRow5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalTotalCol5" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>
                                    </Grid>
                                </StackPanel>
                                <StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Odds-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#x0a;(Mid-P)"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioEstimate5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioLower5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioUpper5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPEstimate5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPLower5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPUpper5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherEstimate5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherLower5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherUpper5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Risk-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioEstimate5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioLower5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioUpper5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceEstimate5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceLower5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceUpper5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Statistical Tests</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="80"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock Grid.Row="0" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" FontFamily="Pericles">
                                    X<Run Typography.Variants="Superscript">2</Run>
                                                </TextBlock>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncVal5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncP5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManVal5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManP5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorVal5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorP5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <Grid HorizontalAlignment="Center"  Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock Grid.Row="1" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
                                                <TextBlock Grid.Row="2" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPExact5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact2P5" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                        </Grid>
                    </TabItem>
                    <TabItem x:Name="Tab6" Header="Strata 6">
                        <Grid>
                            <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
                                    <TextBlock Name="txtExposure6" FontWeight="Bold" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0"></TextBlock>
                                    <Grid Name="grdTables6" HorizontalAlignment="Center" Margin="-100,10,10,10">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="20"/>
                                            <RowDefinition Height="30"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="55"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>

                                        <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="4" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="3" Stroke="Black"/>

                                        <TextBlock FontWeight="Bold" Name="txtOutcome6" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"></TextBlock>

                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"></TextBlock>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1">
                                            <TextBox Name="txtYesYesVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesYesRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesYesCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2">
                                            <TextBox Name="txtYesNoVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesNoRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesNoCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="1">
                                            <TextBox Name="txtNoYesVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoYesRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoYesCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1">
                                            <TextBlock Name="txtTotalYesVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalYesRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalYesCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2">
                                            <TextBox Name="txtNoNoVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoNoRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoNoCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="2">
                                            <TextBlock Name="txtTotalNoVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalNoRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalNoCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="3">
                                            <TextBlock Name="txtYesTotalVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesTotalRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesTotalCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="3">
                                            <TextBlock Name="txtNoTotalVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoTotalRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoTotalCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="3">
                                            <TextBlock Name="txtTotalTotalVal6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalTotalRow6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalTotalCol6" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>
                                    </Grid>
                                </StackPanel>
                                <StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Odds-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#x0a;(Mid-P)"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioEstimate6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioLower6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioUpper6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPEstimate6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPLower6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPUpper6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherEstimate6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherLower6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherUpper6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Risk-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioEstimate6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioLower6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioUpper6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceEstimate6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceLower6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceUpper6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Statistical Tests</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="80"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock Grid.Row="0" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" FontFamily="Pericles">
                                    X<Run Typography.Variants="Superscript">2</Run>
                                                </TextBlock>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncVal6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncP6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManVal6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManP6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorVal6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorP6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <Grid HorizontalAlignment="Center"  Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock Grid.Row="1" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
                                                <TextBlock Grid.Row="2" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPExact6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact2P6" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                        </Grid>
                    </TabItem>
                    <TabItem x:Name="Tab7" Header="Strata 7">
                        <Grid>
                            <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
                                    <TextBlock Name="txtExposure7" FontWeight="Bold" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0"></TextBlock>
                                    <Grid Name="grdTables7" HorizontalAlignment="Center" Margin="-100,10,10,10">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="20"/>
                                            <RowDefinition Height="30"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="55"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>

                                        <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="4" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="3" Stroke="Black"/>

                                        <TextBlock FontWeight="Bold" Name="txtOutcome7" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"></TextBlock>

                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"></TextBlock>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1">
                                            <TextBox Name="txtYesYesVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesYesRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesYesCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2">
                                            <TextBox Name="txtYesNoVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesNoRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesNoCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="1">
                                            <TextBox Name="txtNoYesVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoYesRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoYesCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1">
                                            <TextBlock Name="txtTotalYesVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalYesRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalYesCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2">
                                            <TextBox Name="txtNoNoVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoNoRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoNoCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="2">
                                            <TextBlock Name="txtTotalNoVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalNoRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalNoCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="3">
                                            <TextBlock Name="txtYesTotalVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesTotalRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesTotalCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="3">
                                            <TextBlock Name="txtNoTotalVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoTotalRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoTotalCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="3">
                                            <TextBlock Name="txtTotalTotalVal7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalTotalRow7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalTotalCol7" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>
                                    </Grid>
                                </StackPanel>
                                <StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Odds-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#x0a;(Mid-P)"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioEstimate7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioLower7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioUpper7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPEstimate7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPLower7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPUpper7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherEstimate7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherLower7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherUpper7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Risk-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioEstimate7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioLower7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioUpper7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceEstimate7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceLower7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceUpper7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Statistical Tests</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="80"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock Grid.Row="0" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" FontFamily="Pericles">
                                    X<Run Typography.Variants="Superscript">2</Run>
                                                </TextBlock>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncVal7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncP7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManVal7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManP7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorVal7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorP7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <Grid HorizontalAlignment="Center"  Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock Grid.Row="1" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
                                                <TextBlock Grid.Row="2" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPExact7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact2P7" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                        </Grid>
                    </TabItem>
                    <TabItem x:Name="Tab8" Header="Strata 8">
                        <Grid>
                            <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
                                    <TextBlock Name="txtExposure8" FontWeight="Bold" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0"></TextBlock>
                                    <Grid Name="grdTables8" HorizontalAlignment="Center" Margin="-100,10,10,10">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="20"/>
                                            <RowDefinition Height="30"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="55"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>

                                        <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="4" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="3" Stroke="Black"/>

                                        <TextBlock FontWeight="Bold" Name="txtOutcome8" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"></TextBlock>

                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"></TextBlock>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1">
                                            <TextBox Name="txtYesYesVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesYesRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesYesCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2">
                                            <TextBox Name="txtYesNoVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesNoRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesNoCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="1">
                                            <TextBox Name="txtNoYesVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoYesRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoYesCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1">
                                            <TextBlock Name="txtTotalYesVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalYesRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalYesCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2">
                                            <TextBox Name="txtNoNoVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoNoRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoNoCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="2">
                                            <TextBlock Name="txtTotalNoVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalNoRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalNoCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="3">
                                            <TextBlock Name="txtYesTotalVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesTotalRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesTotalCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="3">
                                            <TextBlock Name="txtNoTotalVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoTotalRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoTotalCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="3">
                                            <TextBlock Name="txtTotalTotalVal8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalTotalRow8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalTotalCol8" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>
                                    </Grid>
                                </StackPanel>
                                <StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Odds-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#x0a;(Mid-P)"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioEstimate8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioLower8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioUpper8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPEstimate8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPLower8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPUpper8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherEstimate8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherLower8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherUpper8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Risk-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioEstimate8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioLower8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioUpper8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceEstimate8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceLower8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceUpper8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Statistical Tests</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="80"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock Grid.Row="0" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" FontFamily="Pericles">
                                    X<Run Typography.Variants="Superscript">2</Run>
                                                </TextBlock>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncVal8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncP8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManVal8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManP8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorVal8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorP8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <Grid HorizontalAlignment="Center"  Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock Grid.Row="1" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
                                                <TextBlock Grid.Row="2" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPExact8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact2P8" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                        </Grid>
                    </TabItem>
                    <TabItem x:Name="Tab9" Header="Strata 9">
                        <Grid>
                            <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
                                    <TextBlock Name="txtExposure9" FontWeight="Bold" Width="120"  Margin="2, 40, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Exposure" Grid.Row="1" Grid.Column="0"></TextBlock>
                                    <Grid Name="grdTables9" HorizontalAlignment="Center" Margin="-100,10,10,10">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="20"/>
                                            <RowDefinition Height="30"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                            <RowDefinition Height="70"/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="55"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>

                                        <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                        <Rectangle Grid.Row="4" Grid.Column="1" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="2" Stroke="Black"/>
                                        <Rectangle Grid.Row="4" Grid.Column="3" Stroke="Black"/>

                                        <TextBlock FontWeight="Bold" Name="txtOutcome9" HorizontalAlignment="Center" Text="Outcome" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0"></TextBlock>

                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Yes" Grid.Row="1" Grid.Column="1"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="No" Grid.Row="1" Grid.Column="2"></TextBlock>
                                        <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="Total" Grid.Row="1" Grid.Column="3"></TextBlock>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Yes"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="No"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0">
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 10" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Total"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 10, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Row %"></TextBlock>
                                            <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Col %"></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1">
                                            <TextBox Name="txtYesYesVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesYesRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesYesCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2">
                                            <TextBox Name="txtYesNoVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesNoRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesNoCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="1">
                                            <TextBox Name="txtNoYesVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoYesRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoYesCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1">
                                            <TextBlock Name="txtTotalYesVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalYesRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalYesCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2">
                                            <TextBox Name="txtNoNoVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoNoRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoNoCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="2">
                                            <TextBlock Name="txtTotalNoVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalNoRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalNoCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="3">
                                            <TextBlock Name="txtYesTotalVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtYesTotalRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtYesTotalCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="3">
                                            <TextBlock Name="txtNoTotalVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtNoTotalRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtNoTotalCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>

                                        <StackPanel Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="3">
                                            <TextBlock Name="txtTotalTotalVal9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" Height="30" Width="50" FontSize="20" TextAlignment="Right"/>
                                            <TextBlock Name="txtTotalTotalRow9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                            <TextBlock Name="txtTotalTotalCol9" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Right" ></TextBlock>
                                        </StackPanel>
                                    </Grid>
                                </StackPanel>
                                <StackPanel HorizontalAlignment="Left" Margin="5,5,5,5" Orientation="Horizontal">
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Odds-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="MLE Odds Ratio&#x0a;(Mid-P)"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Fisher-Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioEstimate9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioLower9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtOddsRatioUpper9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPEstimate9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPLower9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPUpper9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherEstimate9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherLower9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherUpper9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Risk-based Parameters</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="100"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="60"/>
                                                </Grid.ColumnDefinitions>
                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="Estimate"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="Lower"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="3" Text="Upper"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Risk Ratio"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Risk Difference"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioEstimate9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioLower9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskRatioUpper9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="3" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceEstimate9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceLower9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtRiskDifferenceUpper9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                    <StackPanel HorizontalAlignment="Left" Margin="0" Visibility="Visible" Orientation="Vertical">
                                        <StackPanel>
                                            <TextBlock FontWeight="Bold" HorizontalAlignment="Center">Statistical Tests</TextBlock>
                                            <Grid HorizontalAlignment="Left" Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="60"/>
                                                    <ColumnDefinition Width="80"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock Grid.Row="0" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" FontFamily="Pericles">
                                    X<Run Typography.Variants="Superscript">2</Run>
                                                </TextBlock>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Uncorrected"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Mantel-Haenszel"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Corrected"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncVal9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqUncP9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManVal9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqManP9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorVal9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtChiSqCorP9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                        <StackPanel>
                                            <Grid HorizontalAlignment="Center"  Margin="5,5,5,5">
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                    <RowDefinition Height="30"/>
                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                </Grid.ColumnDefinitions>

                                                <Rectangle Grid.Row="0" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="0" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>

                                                <Rectangle Grid.Row="1" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>

                                                <Rectangle Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                                                <Rectangle Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                                                <Rectangle Grid.Row="3" Grid.Column="2" Stroke="Black"/>

                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="1" Text="1 Tailed P"/>
                                                <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 2, 2, 2" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Text="2 Tailed P"/>

                                                <TextBlock Grid.Row="1" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Mid-P Exact"/>
                                                <TextBlock Grid.Row="2" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Column="0" Text="Fisher Exact"/>

                                                <TextBlock Margin="2, 0, 2, 0" Name="txtMidPExact9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                                                <TextBlock Margin="2, 0, 2, 0" Name="txtFisherExact2P9" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                                            </Grid>
                                        </StackPanel>
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                        </Grid>
                    </TabItem>
                </TabControl>
                <Grid Grid.Column="1" VerticalAlignment="Center" Margin="10,0,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="80" />
                        <ColumnDefinition Width="80" />
                        <ColumnDefinition Width="80" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Name="crudeMLERow" Height="30"/>
                        <RowDefinition Name="crudeFisherExactRow" Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                    </Grid.RowDefinitions>
                    <TextBlock FontWeight="Bold" Foreground="Black" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4" Text="Summary Results"/>
                    <TextBlock FontWeight="Bold" Foreground="Black" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1" Grid.Column="0" Text="Odds Ratio"/>
                    <Rectangle Grid.Row="1" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1" Grid.Column="1" Text="Estimate"/>
                    <Rectangle Grid.Row="1" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1" Grid.Column="2" Text="Lower"/>
                    <Rectangle Grid.Row="1" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1" Grid.Column="3" Text="Upper"/>
                    
                    <Rectangle Grid.Row="2" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Text="Crude&#x0a;(Cross Product)"/>
                    <Rectangle Grid.Row="2" Grid.Column="1" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratCrudeOr" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1" />
                    <Rectangle Grid.Row="2" Grid.Column="2" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratCrudeOrLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="2" />
                    <Rectangle Grid.Row="2" Grid.Column="3" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratCrudeOrUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="3" />

                    <Rectangle Name="tblockStratCrudeMleRectangle" Grid.Row="3" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock Name="tblockStratCrudeMle" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Text="Crude (MLE)"/>
                    <Rectangle Name="txtStratCrudeMleRectangle" Grid.Row="3" Grid.Column="1" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratCrudeMle" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="1" />
                    <Rectangle Name="txtStratCrudeMleLowerRectangle" Grid.Row="3" Grid.Column="2" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratCrudeMleLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2" />
                    <Rectangle Name="txtStratCrudeMleUpperRectangle" Grid.Row="3" Grid.Column="3" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratCrudeMleUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="3" />

                    <Rectangle Grid.Row="4" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0" Text="Fisher-Exact"/>
                    <Rectangle Grid.Row="4" Grid.Column="1" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratFisher" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="4" Grid.Column="1" />
                    <Rectangle Grid.Row="4" Grid.Column="2" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratFisherLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="4" Grid.Column="2" />
                    <Rectangle Grid.Row="4" Grid.Column="3" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratFisherUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="4" Grid.Column="3" />

                    <Rectangle Grid.Row="5" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="5" Grid.Column="0" Text="Adjusted (MH)"/>
                    <Rectangle Grid.Row="5" Grid.Column="1" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratAdjustedOr" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="5" Grid.Column="1" />
                    <Rectangle Grid.Row="5" Grid.Column="2" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratAdjustedOrLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="5" Grid.Column="2" />
                    <Rectangle Grid.Row="5" Grid.Column="3" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratAdjustedOrUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="5" Grid.Column="3" />

                    <Rectangle Name="tblockStratAdjustedMleRectangle" Grid.Row="6" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock  Name="tblockStratAdjustedMle" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="6" Grid.Column="0" Text="Adjusted (MLE)"/>
                    <Rectangle Name="txtStratAdjustedMleRectangle" Grid.Row="6" Grid.Column="1" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratAdjustedMle" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="6" Grid.Column="1" />
                    <Rectangle Name="txtStratAdjustedMleLowerRectangle" Grid.Row="6" Grid.Column="2" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratAdjustedMleLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="6" Grid.Column="2" />
                    <Rectangle Name="txtStratAdjustedMleUpperRectangle" Grid.Row="6" Grid.Column="3" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratAdjustedMleUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="6" Grid.Column="3" />

                    <TextBlock FontWeight="Bold" Foreground="Black" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="8" Grid.Column="0" Text="Risk Ratio"/>
                    <Rectangle Grid.Row="8" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="8" Grid.Column="1" Text="Estimate"/>
                    <Rectangle Grid.Row="8" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="8" Grid.Column="2" Text="Lower"/>
                    <Rectangle Grid.Row="8" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="8" Grid.Column="3" Text="Upper"/>
                    
                    <Rectangle Grid.Row="9" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="9" Grid.Column="0" Text="Crude"/>
                    <Rectangle Grid.Row="9" Grid.Column="1" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratCrudeRr" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="9" Grid.Column="1" />
                    <Rectangle Grid.Row="9" Grid.Column="2" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratCrudeRrLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="9" Grid.Column="2" />
                    <Rectangle Grid.Row="9" Grid.Column="3" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratCrudeRrUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="9" Grid.Column="3" />

                    <Rectangle Grid.Row="10" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="10" Grid.Column="0" Text="Adjusted"/>
                    <Rectangle Grid.Row="10" Grid.Column="1" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratAdjustedRr" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="10" Grid.Column="1" />
                    <Rectangle Grid.Row="10" Grid.Column="2" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratAdjustedRrLower" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="10" Grid.Column="2" />
                    <Rectangle Grid.Row="10" Grid.Column="3" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratAdjustedRrUpper" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="10" Grid.Column="3" />

                    <TextBlock FontWeight="Bold" Foreground="Black" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="12" Grid.Column="0" Text="Chi Square"/>
                    <Rectangle Grid.Row="12" Grid.Column="1" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock Grid.Row="12" FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center"  Grid.Column="1" FontFamily="Pericles">
                                    X<Run Typography.Variants="Superscript">2</Run>
                    </TextBlock>
                    <Rectangle Grid.Row="12" Grid.Column="2" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="12" Grid.Column="2" Text="1 Tailed P"/>
                    <Rectangle Grid.Row="12" Grid.Column="3" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="12" Grid.Column="3" Text="2 Tailed P"/>
                    
                    <Rectangle Grid.Row="13" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="13" Grid.Column="0" Text="Uncorrected&#x0a;(MH)"/>
                    <Rectangle Grid.Row="13" Grid.Column="1" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratChiUnc" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="13" Grid.Column="1" />
                    <Rectangle Grid.Row="13" Grid.Column="2" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratChiUnc1Tail" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="13" Grid.Column="2" />
                    <Rectangle Grid.Row="13" Grid.Column="3" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratChiUnc2Tail" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="13" Grid.Column="3" />

                    <Rectangle Grid.Row="14" Grid.Column="0" Stroke="Black" Fill="{x:Static SystemColors.MenuHighlightBrush}"/>
                    <TextBlock FontWeight="Bold" Foreground="White" Margin="2, 0, 2, 0" VerticalAlignment="Center" Grid.Row="14" Grid.Column="0" Text="Corrected (MH)"/>
                    <Rectangle Grid.Row="14" Grid.Column="1" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratChiCor" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="14" Grid.Column="1" />
                    <Rectangle Grid.Row="14" Grid.Column="2" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratChiCor1Tail" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="14" Grid.Column="2" />
                    <Rectangle Grid.Row="14" Grid.Column="3" Stroke="Black"/>
                    <TextBlock Margin="2, 0, 2, 0" Name="txtStratChiCor2Tail" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="14" Grid.Column="3" />

                </Grid>
            </Grid>
        </GroupBox>
        <Image x:Name="imgClose" Source="..\Images\x.png" HorizontalAlignment="Right" VerticalAlignment="Top" Stretch="None" />
    </Grid>
</UserControl>